package com.campsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.campsys.entity.Course;
import com.campsys.entity.User;
import com.campsys.service.dto.StudentCourseDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    
    IPage<User> selectCourseStudents(Page<User> page, @Param("courseId") Long courseId);
    
    IPage<StudentCourseDTO> selectStudentCourses(Page<StudentCourseDTO> page, @Param("studentId") Long studentId);
} 